package com.mentalsurvey.entity;


import java.time.LocalDateTime;

/**
 * 成绩实体类
 * @author vito
 * @version 1.0
 */
public class Score {
    private Integer id;
    private Integer userId;
    private Integer paperId;
    private String totalScore;
    private String answers;       // JSON字符串，如 [{ "q":1, "choice":2 }]
    private LocalDateTime takenAt;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getPaperId() {
        return paperId;
    }

    public void setPaperId(Integer paperId) {
        this.paperId = paperId;
    }

    public String getTotalScore() {
        return totalScore;
    }

    public void setTotalScore(String totalScore) {
        this.totalScore = totalScore;
    }

    public String getAnswers() {
        return answers;
    }

    public void setAnswers(String answers) {
        this.answers = answers;
    }

    public LocalDateTime getTakenAt() {
        return takenAt;
    }

    public void setTakenAt(LocalDateTime takenAt) {
        this.takenAt = takenAt;
    }
}
